﻿using System;
using System.Web;

namespace AF_Application.Interface.Cache
{
    public interface ISessionCacheProvider : IDisposable
    {
        void Dispose();
        string DistributedSessionID { get; }
        string DistributedSessionKey { get; }
        bool Exists(string key);
        object Get(string key, Type type);
        T Get<T>(string key);
        bool Remove(string key);
        bool Set<T>(string key, T data, uint lifeSeconds = 1200);
    }
}
